﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using FlexiCommerce.Engine;

namespace FlexiCommerce.Web
{
    public class InitializerModule : IHttpModule
    {
        public void Init(HttpApplication context)
        {
            EventBroker broker = EventBroker.Instance;

            lock (broker)
            {
                broker.Attach(context);
            }
            FlexiCommerce.Context.Initialize(false);
        }

        public void Dispose()
        {
        }
    }
}
